home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / LIBTIFF / Makefile.in < prev    next >
Makefile  |  1999-09-11  |  12KB  |  440 lines

  1. #! smake
  2. #    $Header: /usr/people/sam/tiff/RCS/Makefile.in,v 1.51 1996/04/29 19:51:20 sam Rel $
  3. #
  4. # @WARNING@
  5. #
  6. # Tag Image File Format Library
  7. #
  8. # Copyright (c) 1988-1996 Sam Leffler
  9. # Copyright (c) 1991-1996 Silicon Graphics, Inc.
  10. # Permission to use, copy, modify, distribute, and sell this software and 
  11. # its documentation for any purpose is hereby granted without fee, provided
  12. # that (i) the above copyright notices and this permission notice appear in
  13. # all copies of the software and related documentation, and (ii) the names of
  14. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  15. # publicity relating to the software without the specific, prior written
  16. # permission of Sam Leffler and Silicon Graphics.
  17. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  18. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  19. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  20. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  21. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  22. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  24. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  25. # OF THIS SOFTWARE.
  26. #
  27.  
  28. SRCDIR    = @SRCDIR@
  29.  
  30. #
  31. # VERSION:    @VERSION@
  32. # DATE:        @DATE@
  33. # TARGET:    @TARGET@
  34. # CCOMPILER:    @CCOMPILER@
  35. # CXXCOMPILER:    @CXXCOMPILER@
  36. #
  37. @SETMAKE@
  38. SHELL    = @SCRIPT_SH@
  39. NULL    =
  40. ECHO    = echo
  41. GENDIST    = ${TOOLROOT}/usr/sbin/gendist
  42.  
  43. all default:
  44.     @if [ "@PORT@" = yes ]; then \
  45.         ${ECHO} "= "port; cd port; ${MAKE}; \
  46.     else \
  47.         true; \
  48.     fi
  49.     @${ECHO} "= "libtiff; cd libtiff; ${MAKE}
  50.     @${ECHO} "= "tools; cd tools; ${MAKE}
  51.     @${ECHO} "= "man; cd man; ${MAKE}
  52.  
  53. install:
  54.     @${ECHO} "= "libtiff; cd libtiff; ${MAKE} install
  55.     @${ECHO} "= "tools; cd tools; ${MAKE} install
  56.     @${ECHO} "= "man; cd man; ${MAKE} install
  57.  
  58. clean:
  59.     @if [ "@PORT@" = yes ]; then \
  60.         ${ECHO} "= "port; cd port; ${MAKE} clean; \
  61.     else \
  62.         true; \
  63.     fi
  64.     @${ECHO} "= "libtiff; cd libtiff; ${MAKE} clean
  65.     @${ECHO} "= "tools; cd tools; ${MAKE} clean
  66.     @${ECHO} "= "man; cd man; ${MAKE} clean
  67. #    -cd contrib/dbs; ${MAKE} clean
  68. #    -cd contrib/dbs/xtiff; ${MAKE} clean
  69.  
  70. clobber distclean: clean
  71.     rm -f Makefile libtiff/port.h config.log
  72.     rm -f libtiff/Makefile
  73.     rm -f tools/Makefile
  74.     rm -f man/Makefile
  75.     rm -f port/Makefile port/install.sh
  76.  
  77. #
  78. # The folllowing rule creates a binary distribution for IRIX.
  79. #
  80. product::
  81.     test -d dist || mkdir dist
  82.     rm -f dist/rawidb
  83.     SRC=`pwd` RAWIDB=`pwd`/dist/rawidb ${MAKE} install
  84.     rm -f dist/idb
  85.     sort -u +4 dist/rawidb > dist/idb
  86.     ${GENDIST} -v -dist dist -idb dist/idb \
  87.         -sbase `pwd` -spec ${SRCDIR}/dist/tiff.spec
  88.  
  89. #
  90. # These rules are used to create the source distribution images
  91. #
  92.  
  93. HOST    = sgi
  94. COMPRESS= gzip
  95. ZIPSUF    = gz
  96.  
  97. TIFFFILES=\
  98.     configure                \
  99.     config.guess                \
  100.     config.sub                \
  101.     config.site                \
  102.     Makefile.in                \
  103.     README                    \
  104.     VERSION                    \
  105.     COPYRIGHT                \
  106.     TODO                    \
  107.     dist/tiff.spec                \
  108.         dist/newalpha            \
  109.         dist/newversion            \
  110.     libtiff/Makefile.in            \
  111.         libtiff/Makefile.lcc        \
  112.         libtiff/t4.h            \
  113.         libtiff/tiff.h            \
  114.         libtiff/tiffcomp.h            \
  115.         libtiff/tiffconf.h            \
  116.         libtiff/tiffio.h            \
  117.         libtiff/tiffiop.h            \
  118.         libtiff/mkg3states.c        \
  119.         libtiff/mkspans.c            \
  120.         libtiff/mkversion.c            \
  121.         libtiff/tif_acorn.c            \
  122.         libtiff/tif_apple.c            \
  123.         libtiff/tif_atari.c            \
  124.         libtiff/tif_aux.c            \
  125.         libtiff/tif_close.c            \
  126.         libtiff/tif_codec.c            \
  127.         libtiff/tif_compress.c        \
  128.         libtiff/tif_dir.h            \
  129.         libtiff/tif_dir.c            \
  130.         libtiff/tif_dirinfo.c        \
  131.         libtiff/tif_dirread.c        \
  132.         libtiff/tif_dirwrite.c        \
  133.         libtiff/tif_dumpmode.c        \
  134.         libtiff/tif_error.c            \
  135.         libtiff/tif_fax3.c            \
  136.         libtiff/tif_fax3.h            \
  137.         libtiff/tif_flush.c            \
  138.         libtiff/tif_getimage.c        \
  139.         libtiff/tif_jpeg.c            \
  140.         libtiff/tif_lzw.c            \
  141.         libtiff/tif_msdos.c            \
  142.         libtiff/tif_next.c            \
  143.         libtiff/tif_open.c            \
  144.         libtiff/tif_packbits.c        \
  145.         libtiff/tif_pixarlog.c        \
  146.         libtiff/tif_predict.h        \
  147.         libtiff/tif_predict.c        \
  148.         libtiff/tif_print.c            \
  149.         libtiff/tif_read.c            \
  150.         libtiff/tif_strip.c            \
  151.         libtiff/tif_swab.c            \
  152.         libtiff/tif_thunder.c        \
  153.         libtiff/tif_tile.c            \
  154.         libtiff/tif_unix.c            \
  155.         libtiff/tif_version.c        \
  156.         libtiff/tif_vms.c            \
  157.         libtiff/tif_warning.c        \
  158.         libtiff/tif_win3.c            \
  159.         libtiff/tif_win32.c            \
  160.         libtiff/tif_write.c            \
  161.         libtiff/tif_zip.c            \
  162.     port/Makefile.in            \
  163.         port/getopt.c            \
  164.         port/install.sh.in            \
  165.         port/irix/so_locations        \
  166.         port/strcasecmp.c            \
  167.         port/strtoul.c            \
  168.     tools/Makefile.in            \
  169.         tools/Makefile.lcc            \
  170.         tools/fax2tiff.c            \
  171.         tools/fax2ps.c            \
  172.         tools/gif2tiff.c            \
  173.         tools/pal2rgb.c            \
  174.         tools/ppm2tiff.c            \
  175.         tools/ras2tiff.c            \
  176.         tools/rasterfile.h            \
  177.         tools/rgb2ycbcr.c            \
  178.         tools/sgi2tiff.c            \
  179.         tools/sgigt.c            \
  180.         tools/sgisv.c            \
  181.         tools/thumbnail.c            \
  182.         tools/tiff2bw.c            \
  183.         tools/tiff2ps.c            \
  184.         tools/tiffcmp.c            \
  185.         tools/tiffcp.c            \
  186.         tools/tiffdither.c            \
  187.         tools/tiffdump.c            \
  188.         tools/tiffinfo.c            \
  189.         tools/tiffmedian.c            \
  190.         tools/tiffsplit.c            \
  191.         tools/ycbcr.c            \
  192.     man/Makefile.in                \
  193.         man/fax2tiff.1            \
  194.         man/fax2ps.1            \
  195.         man/gif2tiff.1            \
  196.         man/pal2rgb.1            \
  197.         man/ppm2tiff.1            \
  198.         man/ras2tiff.1            \
  199.         man/rgb2ycbcr.1            \
  200.         man/sgi2tiff.1            \
  201.         man/thumbnail.1            \
  202.         man/tiff2bw.1            \
  203.         man/tiff2ps.1            \
  204.         man/tiffcmp.1            \
  205.         man/tiffcp.1            \
  206.         man/tiffdither.1            \
  207.         man/tiffdump.1            \
  208.         man/tiffgt.1            \
  209.         man/tiffinfo.1            \
  210.         man/tiffmedian.1            \
  211.         man/tiffsplit.1            \
  212.         man/tiffsv.1            \
  213.         man/TIFFClose.3t            \
  214.         man/TIFFError.3t            \
  215.         man/TIFFFlush.3t            \
  216.         man/TIFFGetField.3t            \
  217.         man/TIFFOpen.3t            \
  218.         man/TIFFPrintDirectory.3t        \
  219.         man/TIFFReadDirectory.3t        \
  220.         man/TIFFReadEncodedStrip.3t        \
  221.         man/TIFFReadEncodedTile.3t        \
  222.         man/TIFFReadRGBAImage.3t        \
  223.         man/TIFFReadRawStrip.3t        \
  224.         man/TIFFReadRawTile.3t        \
  225.         man/TIFFReadScanline.3t        \
  226.         man/TIFFReadTile.3t            \
  227.         man/TIFFRGBAImage.3t        \
  228.         man/TIFFSetDirectory.3t        \
  229.         man/TIFFSetField.3t            \
  230.         man/TIFFWarning.3t            \
  231.         man/TIFFWriteDirectory.3t         \
  232.         man/TIFFWriteEncodedStrip.3t    \
  233.         man/TIFFWriteEncodedTile.3t        \
  234.         man/TIFFWriteRawStrip.3t        \
  235.         man/TIFFWriteRawTile.3t        \
  236.         man/TIFFWriteScanline.3t        \
  237.         man/libtiff.3t            \
  238.         man/TIFFbuffer.3t            \
  239.         man/TIFFcodec.3t            \
  240.         man/TIFFmemory.3t            \
  241.         man/TIFFquery.3t            \
  242.         man/TIFFsize.3t            \
  243.         man/TIFFstrip.3t            \
  244.         man/TIFFswab.3t            \
  245.         man/TIFFtile.3t            \
  246.     html/Makefile.in            \
  247.         html/bugs.html            \
  248.         html/build.html            \
  249.         html/contrib.html            \
  250.         html/document.html            \
  251.         html/images.html            \
  252.         html/index.html            \
  253.         html/internals.html            \
  254.         html/intro.html            \
  255.         html/libtiff.html            \
  256.         html/misc.html            \
  257.         html/support.html            \
  258.         html/tools.html            \
  259.         html/v3.4beta033.html        \
  260.         html/v3.4beta032.html        \
  261.         html/v3.4beta031.html        \
  262.         html/v3.4beta029.html        \
  263.         html/v3.4beta028.html        \
  264.         html/v3.4beta024.html        \
  265.         html/v3.4beta018.html        \
  266.         html/v3.4beta016.html        \
  267.         html/v3.4beta007.html        \
  268.     ${NULL}
  269. OTHERFILES=\
  270.     html/images/back.gif            \
  271.     html/images/bali.jpg            \
  272.     html/images/cat.gif            \
  273.     html/images/cover.jpg            \
  274.     html/images/cramps.gif            \
  275.     html/images/dave.gif            \
  276.     html/images/info.gif            \
  277.     html/images/jello.jpg            \
  278.     html/images/jim.gif            \
  279.     html/images/note.gif            \
  280.     html/images/oxford.gif            \
  281.     html/images/quad.jpg            \
  282.     html/images/ring.gif            \
  283.     html/images/smallliz.jpg        \
  284.     html/images/strike.gif            \
  285.     html/images/warning.gif            \
  286.     ${NULL}
  287. CONTRIBFILES=\
  288.     contrib/dbs/README            \
  289.         contrib/dbs/Imakefile        \
  290.         contrib/dbs/tiff-bi.c        \
  291.         contrib/dbs/tiff-grayscale.c    \
  292.         contrib/dbs/tiff-palette.c        \
  293.         contrib/dbs/tiff-rgb.c        \
  294.         contrib/dbs/xtiff/README        \
  295.         contrib/dbs/xtiff/Imakefile    \
  296.         contrib/dbs/xtiff/patchlevel.h    \
  297.         contrib/dbs/xtiff/xtiff.c    \
  298.         contrib/dbs/xtiff/xtifficon.h    \
  299.     contrib/ras/ras2tif.c            \
  300.     contrib/ras/tif2ras.c            \
  301.     contrib/vms/libtiff/makevms.com        \
  302.         contrib/vms/libtiff/tiff.opt    \
  303.         contrib/vms/libtiff/tiffshraxp.opt    \
  304.         contrib/vms/libtiff/tiffshrvax.opt    \
  305.         contrib/vms/libtiff/tiffvec.mar    \
  306.         contrib/vms/tools/makevms.com    \
  307.     contrib/tags                \
  308.     contrib/mac-mpw                \
  309.     contrib/acorn                \
  310.     contrib/win32                \
  311.     contrib/win95                \
  312.     contrib/winnt                \
  313.     contrib/mac-cw                \
  314.     contrib/dosdjgpp            \
  315.     ${NULL}
  316. DISTFILES=\
  317.     ${TIFFFILES}                \
  318.     dist/tiff.alpha                \
  319.     dist/tiff.version            \
  320.     ${OTHERFILES}                \
  321.     ${CONTRIBFILES}                \
  322.     ${NULL}
  323.  
  324. CONFIG=\
  325.     -with-CC=cc \
  326.     -with-GCOPTS=" " \
  327.     -with-JPEG=yes \
  328.     -with-DIR_JPEG=../src/jpeg-5a \
  329.     -with-ZIP=yes \
  330.     -with-DIR_LIBGZ=../src/zlib \
  331.     ${NULL}
  332.  
  333. rcsclean:
  334.     rcsclean ${TIFFFILES} && co ${TIFFFILES}
  335.  
  336. alpha:
  337.     (cd ${SRCDIR}/dist; sh newversion)
  338.     -${MAKE} clean
  339.     ${MAKE} alpha.stamp
  340.     ${SRCDIR}/configure ${CONFIG}
  341.     ${MAKE} product
  342.     ${MAKE} alpha.tar
  343.  
  344. # stamp relevant files according to current alpha
  345. alpha.stamp:
  346.     VERSION=`awk '{print "Alpha" $$3}' ${SRCDIR}/dist/tiff.alpha`;\
  347.     NOW=`date`;                            \
  348.     for i in ${TIFFFILES}; do                    \
  349.         REV=`rlog -h -d"$$NOW" ${SRCDIR}/$$i|fgrep 'head:'|awk '{print $$2}'`;\
  350.         rcs "-N$$VERSION:$$REV" "-sExp:$$REV" ${SRCDIR}/$$i && co -sExp ${SRCDIR}/$$i;    \
  351.     done
  352.  
  353. purge-old-alphas:
  354.     VERSIONS=`awk '{for (i=1; i<=$$3; i++) printf " -nAlpha%03d",i}'\
  355.         ${SRCDIR}/dist/tiff.alpha`;                    \
  356.     for i in ${TIFFFILES}; do                    \
  357.         echo rcs $$VERSIONS ${SRCDIR}/$$i;                \
  358.         rcs $$VERSIONS ${SRCDIR}/$$i && co ${SRCDIR}/$$i;        \
  359.     done
  360.  
  361. alphadiff:
  362.     -@for i in ${TIFFFILES}; do                    \
  363.         rcsdiff -r${ALPHA} ${SRCDIR}/$$i;                \
  364.     done
  365.  
  366. # create alpha distribution archive
  367. alpha.tar:
  368.     VERSION="v`cat ${SRCDIR}/VERSION``awk '{print $$3}' ${SRCDIR}/dist/tiff.alpha`";    \
  369.     rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;            \
  370.     ln -s ${SRCDIR} tiff-$$VERSION;                    \
  371.     (for i in ${DISTFILES}; do                    \
  372.        echo $$i;                            \
  373.     done) | sed "s;.*;tiff-$$VERSION/&;" >$$VERSION;        \
  374.     tar cvf $$VERSION-tar `cat $$VERSION`;                \
  375.     rm -f tiff-$$VERSION-tar.${ZIPSUF};                \
  376.     cat $$VERSION-tar | ${COMPRESS} >tiff-$$VERSION-tar.${ZIPSUF};    \
  377.     rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;
  378.  
  379. release:
  380.     (cd ${SRCDIR}/dist; sh newversion)
  381.     -${MAKE} clean
  382.     ${MAKE} release.stamp
  383.     ${SRCDIR}/configure ${CONFIG}
  384.     ${MAKE} product
  385.     ${MAKE} release.tar
  386.  
  387. release.stamp:
  388.     VERSION="Release`sed 's/\./_/g' ${SRCDIR}/VERSION`";        \
  389.     NOW=`date`;                            \
  390.     for i in ${TIFFFILES}; do                    \
  391.         REV=`rlog -h -d"$$NOW" ${SRCDIR}/$$i|fgrep 'head:'|awk '{print $$2}'`;\
  392.         rcs "-N$$VERSION:$$REV" "-sRel:$$REV" ${SRCDIR}/$$i && co -sRel ${SRCDIR}/$$i;    \
  393.     done
  394.  
  395. # create release distribution archive
  396. release.tar:
  397.     VERSION=v`cat ${SRCDIR}/VERSION`;                \
  398.     rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;            \
  399.     ln -s ${SRCDIR} tiff-$$VERSION;                    \
  400.     (for i in ${DISTFILES}; do                    \
  401.        echo $$i;                            \
  402.     done) | sed "s;.*;tiff-$$VERSION/&;" >$$VERSION;        \
  403.     tar cvf $$VERSION-tar `cat $$VERSION`;                \
  404.     rm -f tiff-$$VERSION-tar.${ZIPSUF};                \
  405.     cat $$VERSION-tar | ${COMPRESS} >tiff-$$VERSION-tar.${ZIPSUF};    \
  406.     rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;
  407.  
  408. #
  409. # Create a package of the test images.
  410. #
  411.  
  412. PICS=\
  413.     pics/README         \
  414.     pics/cramps.tif         \
  415.     pics/cramps-tile.tif    \
  416.     pics/fax2d.tif        \
  417.     pics/g3test.tif        \
  418.     pics/jello.tif        \
  419.     pics/jim___cg.tif    \
  420.     pics/jim___dg.tif    \
  421.     pics/jim___gg.tif    \
  422.     pics/jim___ah.tif    \
  423.     pics/strike.tif        \
  424.     pics/oxford.tif        \
  425.     pics/quad-lzw.tif    \
  426.     pics/quad-tile.tif    \
  427.     pics/text.tif        \
  428.     pics/ycbcr-cat.tif    \
  429.     pics/smallliz.tif    \
  430.     pics/zackthecat.tif    \
  431.     pics/fax2d.g3        \
  432.     pics/g3test.g3        \
  433.     ${NULL}
  434.  
  435. pics.tar:
  436.     tar cvf - ${PICS} | ${COMPRESS} > tiffpics.tar.${ZIPSUF}
  437.